<?php
	error_reporting(E_ALL);
	
	session_start();
	$_SESSION['lang'] = (!empty($_GET['lang']) ? $_GET['lang'] : (!empty($_SESSION['lang']) ? $_SESSION['lang'] : 'fr') );
	// setup the database connection
	$db_host = 'localhost';
	$db_name = 'televisi_db';
	$db_user = 'televisi_admin';
	$db_pass = '3yeNMEHj';
	
	$conn = mysql_connect($db_host, $db_user, $db_pass) or die('Database setup corrupted');
	mysql_select_db($db_name, $conn) or die('Cannot access the database');
	// end database setup
	
	error_reporting(E_ALL);
	// define the necessary constants
	define('ABS_URL', 'http://www.televisiontunes.com/');
	define('PAGE_EXTENSION' , '.html');
	define('ROOT_DIR',getcwd().'/../');
	define("ROWS_PER_PAGE",2000);
	define("PAGE_NAME",basename($_SERVER['PHP_SELF']));
  define('BIZ_NAME', 'TELEVISIONTUNES.COM');
  define('BULK_UPLOAD_ITEMS', 10);
	// end constants

	// include the libraries
	include('../lib/utils.class.php');
	// end libraries
